<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模板继承@yield('title')</title>
</head>
<style>
    .header{
        width:1000px;
        height:150px;
        margin:0 auto;
        background:lightgray;
        border:1px solid  black;
    }
    .main{
        width:1000px;
        height:300px;
        margin:0 auto;
        margin-top: 15px;
        clear:both;
    }
    .sidebar{
        width:150px;
        height:300px;
        margin:0 auto;
        background:lightgray;
        float: left;
        border:1px solid  black;
    }
    .content{
        width:800px;
        height:300px;
        margin:0 0 0 45px;
        background:lightgray;
        float: right;
        border:1px solid  black;
    }

    .footer{
        width:1000px;
        height:100px;
        margin:20px auto 0 auto;
        background:lightgray;
        border:1px solid  black;
    }
</style>
<body>
<div class="header">
    @section('header')
    头部
    @show
</div>
<div class="main">
    <div class="sidebar">
        @section('sidebar')
        侧边栏
        @show
    </div>
    <div class="content">
        @yield('content', '主要内容区域')
    </div>
</div>
<div class="footer">
    @section('footer')
        底部
    @show
</div>

</body>
</html>